/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package collections;

/**
 *
 * @author anonymous
 */
public class Main {
    private static long startTime;
    
    public static void main( String args []) {
        Recursion r = new Recursion();
        //Fibonacci con cache
//        startBenchmark();
//        System.out.println(r.fibCached(30));
//        endBenchmark();
//        //Fibonacci recursivo
//        startBenchmark();
//        System.out.println(r.fib(30));
//        endBenchmark();
//        //Fibonacci ciclico        
//        startBenchmark();
//        System.out.println(r.fibCicle(30));
//        endBenchmark();
//        //Fibonacci con cache
//        startBenchmark();
//        System.out.println(r.fibCached(30));
//        endBenchmark();
        
        System.out.println("HANOI");
        for( int i = 0; i<20;i++) {
            startBenchmark();
            r.move(5, 1,3);
            endBenchmark();
        }
    }
    
    public static void startBenchmark(){
        startTime = System.nanoTime();
    }
    public static void endBenchmark(){
        System.out.println("Execution time: " + ((System.nanoTime() - startTime) * 1e-6) + " milliseconds");
    }
}
